var fs = require("fs");
var path = require("path");
const { Writable } = require("stream");

var filePath = path.join(__dirname,"/2.txt");


var writable = fs.createWriteStream(filePath);
writable.write("hello world");
writable.end();